/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package clases_anidadas.internas_estandard;

/**
 *
 * @author Luis_Angel
 */
 class Externa {
    private String var1="s";

    
    class Interna{
        public void metodoInterno1(){
            System.out.println("llamada al metodo interno 1");
        }

        public void metodoInterno2(){
            System.out.println("usando variable de clase externa : " + var1);
        }
    }
  }

 public class Ejemplo1{
     public static void main(String[] args){
            Externa ex = new Externa();
            Externa.Interna in = ex.new Interna();
            in.metodoInterno1();
            in.metodoInterno2();
     }
 }
